package likou;

/**
 * @author: 唐小尊
 * @email: 1171702529@qq.com
 * @cate: 2021/08/08 10:40
 */
public class _5838 {
    public static void main(String[] args) {

    }
    public boolean isPrefixString(String s, String[] words) {
        StringBuilder sb = new StringBuilder();
        for (String str:words){
            if (sb.length()>=s.length()) {
                break;
            }
            sb.append(str);
        }
        return sb.toString().equals(s);
    }
}
